package drg_group.wuxi_2022.MDC;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;

import drg_group.wuxi_2022.Base;
import drg_group.wuxi_2022.MedicalRecord;
import drg_group.wuxi_2022.ADRG.*;

public class MDCD{
    public static String group(MedicalRecord record){
        String[] mdc_zd={"C41.006","Q85.900x038","H93.900x001","C79.800x845","H81.100","D48.700x025","D10.200x002","R04.000","C49.002","J31.100","B37.002","H93.101","H81.200","C32.800","H91.901","K08.806","C00.500x002","K13.014","J38.700x017","M95.204","C06.800","J34.801","K07.604","K13.402","K05.105","J34.813","K06.000x002","J38.717","Z41.103","S03.000","J34.800x033","J38.300x016","K13.700x013","H69.900","D10.700","J01.300","Q27.800x027","S00.500x052","C79.801","J37.005","D22.400x002","T86.802","S01.200x021","H81.101","K07.903","K00.600x007","D18.101","D18.004","K13.700x025","A18.400x019","H90.100","L02.000","C14.800","Q89.202","K09.004","C06.100x005","Q30.804","C05.100","C41.000x019","K04.500","K10.801","C09.900","K05.300x002","K14.300x004","J38.710","K13.007","K03.800x001","J33.000x002","S01.000","Q38.001","S13.500x011","S02.400x005","S13.400","K10.205","K11.803","R43.800x002","S10.700","J11.100x002","K06.800x013","K11.900x004","R07.000","S03.400x001","K04.002","K11.401","K08.302","J30.000","K09.204","K08.807","J38.400","K06.100x003","S15.800x003","K12.115","C02.100","Z45.302","D38.503","D21.005","K11.400","G47.300x031","J39.221","S11.001","S00.300x051","S00.800x055","K09.801","C79.800x825","K02.800x006","C79.505","S02.501","D02.001","C13.900","H65.900x001","S11.002","S02.600x021","M95.007","G47.301","C00.401","H60.301","J32.905","K07.000x009","D18.000x858","H90.801","J38.709","J01.400","K05.100x010","C47.000x011","K03.106","K10.207","S02.400x003","C10.102","K03.800x003","K00.400x002","S02.612","E85.401","D03.000","D22.301","H92.100x001","Q31.801","H61.800x005","K00.200x009","C11.300x004","C11.100","K03.102","J39.223","S00.700","H83.200","K07.003","K06.800x012","K05.400x002","K08.204","Z45.801","K06.800x009","Q36.006","Q31.800x004","D16.500x002","H60.901","D23.200x003","E85.400x006","H66.900x002","S01.501","S11.800x082","J39.206","C00.304","K00.200x002","C76.005","S09.900x006","C76.000x002","D37.003","J34.810","Q30.900","H73.100","S00.404","D23.300x003","D02.302","Q38.801","D00.002","K04.101","C41.008","J11.100x004","J09.x05+H67.1*","K07.302","J95.000x001","Q37.500","K13.200x010","B02.801+H62.1*","C79.500x016","Q18.100x003","S02.600x091","K07.005","K14.900x003","K11.200x009","T27.401","K09.100x003","S09.200","D37.014","H65.000x002","S15.800x002","S11.004","J39.200x016","K04.006","Q17.400","K03.100x001","C00.001","T85.800x804","D14.101","K07.000x011","C30.100","K14.500x002","H93.200x002","H60.501","K14.802","K13.400x002","H91.900x004","H61.804","R44.201","J33.801","C11.901","K06.801","D16.409","K12.303","J32.801","J39.217","S02.901","K05.204","K09.200x001","K00.501","H74.300","J33.001","S03.301","J02.900x005","S00.002","Q89.800x904","C41.100","Q67.400x202","H73.101","Q17.802","C11.202","D18.100x011","H70.103","K03.604","H90.000","D38.502","J38.200","K12.110","K08.300x002","J38.700x003","H61.200","C41.009","J39.900","K07.300x005","D14.002","C14.002","S10.003","J04.001","Q18.600","J35.809","K07.100x008","K10.100x001","S19.802","H61.102","K12.304","J11.100x003","C06.900","S09.907","H66.900","J39.200x008","J32.003","J32.800x001","K10.208","D03.301","J39.210","J01.001","S02.803","Q30.805","C49.005","H60.500x006","H61.100x002","H74.300x004","J01.900x003","J95.003","C02.101","K08.802","J02.900x002","C13.000","K00.400","K00.603","K07.205","C03.900x001","K11.903","J01.100","K10.211","K05.100x013","Q27.800x024","H93.300","S00.003","H74.000","C14.800x001","D48.200x002","J38.307","J02.900","H68.101","C00.500x004","Q18.400x004","H83.100","K06.806","J31.202","K12.202","K06.000x004","Q67.300","Q18.800x004","Z41.102","J30.100","H60.000x002","H90.600","K13.015","H72.001","H92.100","D16.405","S13.400x005","J38.000x031","B00.203","Q67.401","C79.800x833","K09.201","K05.201","J32.900","Q18.400","H95.900x001","J35.808","K03.601","B49.x08","Q17.003","J36.x00x001","Q16.901","K13.005","C09.902","Q38.002","C12.x00x002","S17.000x002","J11.802+H67.1*","K12.216","B44.800x004+H62.2*","K12.203","Q35.502","Q31.806","Q85.900x037","H81.301","K12.208","Q18.800x003","K10.212","Q38.300x007","J34.003","Q38.700","K12.112","J38.308","J32.800x011","Q18.200","Q38.500x009","D10.000x005","K14.809","C44.305","K08.900","I88.900x004","Q16.900","J39.101","Q75.805","K01.000","S01.505","K03.300","J10.100","J38.301","K00.202","C05.000","C02.300x003","J32.900x011","J95.400","K00.206","K10.209","Q27.300x010","C13.200","K03.300x002","K13.203","S02.411","C32.103","Q35.100","K07.301","K11.209","Q38.802","Q38.300x005","J37.004","K13.400","Q67.407","S03.100","D48.200x009","K09.000x007","C09.000","D10.504","K07.300x008","Q36.905","J34.803","Q27.800x040","Z42.009","K00.602","Q35.302","J36.x00x004","Q18.104","K10.800x008","D48.200x006","D86.802","H93.201","K06.810","K11.601","K12.209","K03.001","K07.100x015","C44.401","D10.503","C30.005","K11.206","C79.800x843","K09.804","Q30.201","H73.800x005","S00.402","K11.801","K12.002","H60.100","D03.200x002","D00.013","H90.300","K00.400x001","C71.900x010","J04.200","K04.200x003","K07.100x017","K06.808","C00.301","A18.200x002","D21.002","D23.301","K10.804","Q18.800x002","K12.218","Q35.907","C11.000","K11.102","D10.601","H74.801","M95.201","S01.302","K10.101","J31.004","D10.308","C77.007","H81.400","S13.500x008","H90.501","K07.200x005","J32.803","D00.008","Q37.400","J39.200x004","S02.802","Q35.900","C47.000x009","D22.000","Z46.300x001","Q38.000x007","K13.703","K00.600x008","H83.800x004","J00.x00x004","T85.607","D37.006","K12.205","I88.102","D00.012","D18.100x004","H71.x02","K03.104","D18.100x007","J95.002","C06.100x002","H65.200","J04.000x004","D37.009","D17.001","A18.802+K93.8*","H70.000x009","D37.018","C78.300x008","J37.000","K11.208","B44.804","C10.800","S09.901","K11.604","H70.004","D38.501","K07.000x007","K04.802","C10.400","D10.101","H74.101","J34.002","H65.900","M85.000x081","C01.x00x003","D04.200x001","D10.301","J38.721","C78.301","I88.900x007","K10.302","K13.715","K07.000x013","S01.300x071","K04.007","K13.206","S01.400x011","K05.100x011","R04.100","K03.105","K04.500x001","M95.207","K07.200x011","H60.300x005","K05.600","C43.201","H95.900","K00.101","S08.801","K07.000x002","C44.200x001","H70.201","K06.800x015","J30.400","Q36.902","J39.811","S17.800","C32.100","J35.800x009","D16.407","K07.104","T85.606","Q31.805","Q17.100","D38.500x003","K12.302","J34.000x010","H81.000","H65.400x001","C10.800x002","C11.200x002","D37.000x002","J06.000x002","J39.219","K07.101","K07.204","C11.300x005","C77.000x005","S13.400x003","J31.002","J33.900","K12.103","K13.008","S01.500x021","H72.900","S09.902","H83.300x001","C78.305","C11.201","D10.000x004","S10.102","J33.803","A69.000x002","S02.912","Q31.900","T17.001","S15.005","J38.002","M95.202","H60.303","K06.809","J38.400x002","T17.200x001","K02.400x001","C10.100","Q27.800x036","D48.701","J39.001","J34.800x002","J39.213","C02.200x002","Q36.100","S02.600x081","K13.200x011","Q75.804","D10.500x001","Q17.501","K14.300x003","C77.002","C49.001","J38.700x021","C44.304","D00.000x008","D37.013","J39.224","K03.500","D38.500x005","J39.200x009","K12.210","S02.412","H60.000x005","K13.700x022","S17.000x001","K03.200x002","K07.902","J32.200x004","S19.801","K13.602","J32.900x007","D02.303","K04.801","C41.003","J38.302","J39.216","H74.400","K02.001","R49.100","D36.700x004","Q85.900x031","K14.100x001","C43.300","J32.901","K12.212","C46.200","Q38.500x002","J38.000x012","D18.102","C11.800","K13.500x002","C09.100x001","Q67.406","D18.000x508","D00.003","J39.209","J03.800","K12.200x017","D48.518","K07.100x011","K13.710","S02.600x061","K07.303","K14.004","S15.100","J39.202","K11.800","H60.300x003","C41.000x020","G47.302","C02.200","D37.005","D48.702","K07.006","K11.101","C03.100x002","C44.307","J02.902","J32.100x005","J39.200x020","K00.301","K12.105","K11.800x006","H95.102","K10.102","K14.401","K12.211","D21.000x002","K10.002","K14.301","A18.800x006+K93.8*","C79.831","C79.504","D10.602","K11.207","J95.800x013","J02.801","Q37.900","S09.905","J38.718","K13.000x023","C00.600","D00.000x007","S09.906","C02.800","B44.200x001+J99.8*","K07.305","Q38.500x003","K04.600","D48.200x005","J38.708","C32.104","D36.702","D37.000x011","C30.003","D10.305","K07.602","D38.508","K03.400","K08.808","J04.002","Q31.100","H70.800x002","C43.401","D18.000x507","H73.803","K13.700x023","C44.300x005","D00.009","K05.101","T18.000","E11.600x032","J04.004","K13.000x016","K11.806","K00.600x002","C14.800x006","J95.000","D11.000","J39.000x001","T28.501","C07.x00","C31.800","H80.200","I88.104","Q17.000","E11.600x031","C00.500x005","H73.802","J34.107","K06.000x003","K06.100x001","Q18.102","H65.102","C79.800x806","D23.200x008","Q18.101","K08.805","H72.200","C44.300","D02.000","C32.101","J39.205","D37.019","H72.000","J35.300","J39.200x015","C11.801","S01.300x031","K07.200x003","K11.501","K00.200x005","C41.000x021","J32.000x009","D37.000x014","K13.100","J39.300","C06.200","J32.000","S19.800x004","D48.200x008","S01.001","H70.100","H61.901","K03.801","Q36.001","D21.000x007","J03.902","K10.900x002","K07.110","K11.402","S10.004","J38.402","K09.000x005","S01.200x031","A36.100","M95.001","Q35.700","D38.500x001","C32.200","D23.300x004","C41.004","K07.600","D10.402","K11.701","K10.204","D00.007","J38.714","T85.800x810","J38.000x021","S01.401","S00.801","S00.800x056","Q17.500","S01.300x011","T18.002","D18.000x501","J35.802","K11.503","S10.801","K04.501","K12.305","D17.700x020","K13.700x011","D21.007","Q38.600x001","C10.900","D16.400x025","Q89.800x908","S02.500x002","K00.200x003","K00.503","S03.400","C04.900","Q38.300","T27.402","K10.808","S11.800x081","M95.003","J35.901","K04.902","K08.103","C76.001","Q16.301","J36.x00","S10.002","H60.401","K03.000","J38.305","J34.106","Q87.004","H68.100x003","K05.500x002","Q38.100","Q18.903","C30.002","Q27.800x021","S13.500x007","J35.807","K09.806","K00.700","C03.101","K03.401","C03.000x002","E14.600x032","C13.100x002","K14.801","D00.000x005","G47.300","J32.800x009","C11.101","J05.000","C09.100","H60.001","Q35.501","D17.700x003","D11.900","S09.800x002","K09.202","D02.000x003","D23.303","H70.200","D10.400","S09.900","H81.902","H83.200x003","D37.000x004","Q18.804","K03.900","D18.000x807","D48.700x007","C00.200x002","H70.101","Q17.302","K10.100x003","K12.213","H95.800","D10.500x002","S01.700","C11.302","B44.800x007","C43.200x001","C47.000x007","Q18.805","S13.500x005","D03.201","K06.800x014","Q38.004","J00.x00x006","S12.815","H93.100","D18.000x510","K07.100x010","A18.205","K00.207","C00.102","K07.000x004","C44.300x006","C13.100x001","D16.410","H60.300x002","K13.000x001","K07.004","K13.601","C04.100","C00.500x003","K06.200","Q36.906","D00.006","Z43.001","D02.300","D10.000x003","M95.205","A69.100x001","J34.101","J38.400x004","J32.200x005","K13.700x018","D09.701","Q17.300x004","Q75.900x005","C08.800x001","H68.000","K00.600x006","K03.103","H60.400","K11.600x008","K04.201","Q37.000","Q75.801","A36.000x003","J35.806","C79.800x840","K02.800x001","K14.808","C05.800","T17.101","I89.000x014","C79.800x828","J34.809","D37.000x015","J38.700x022","K13.400x001","S02.611","M95.209","K11.205","K07.200x001","Q38.600x006","J32.802","J32.300","A66.501+J99.8*","S02.500","S17.001","D21.001","H60.302","C04.800","H90.502","Q17.303","J33.802","S01.300x002","C47.000x005","D18.000x505","E10.600x031","H74.802","K13.000x017","K14.000x006","B36.902+H62.2*","K07.200x002","I77.003","J31.003","A18.804+K93.8*","C08.900","K07.102","Q16.000","Q17.000x005","H65.400","D37.010","C30.102","D00.010","K12.109","Q17.301","Q87.000x301","C09.800","S02.812","C06.902","K10.809","Q30.101","Q38.301","S13.500x006","K07.201","J38.000x032","H95.101","C31.000","K10.803","K14.900x004","Q18.002","J38.200x002","D37.000x012","T70.000","J38.300x013","H61.300","D44.600x002","K10.213","S01.300x012","T28.000x003","C41.002","D10.000x002","A36.000","K12.003","K12.200x003","T28.502","A18.400x018","J06.000","J38.300x011","K00.604","K13.012","D18.000x021","J35.000","D21.000x008","S00.001","B48.300x002+K93.8*","S08.000","C79.800x812","J01.901","J39.225","K05.106","K07.105","K05.203","K03.603","Q30.000","K13.000x012","D18.001","Q38.304","Z45.301","K00.502","C00.900","C44.400x004","H70.002","K02.100","J38.102","Q17.300x002","S00.802","K02.300","D04.300x001","K13.208","K13.714","K13.200x009","D16.403","H61.801","H83.800x002","J30.300x002","Q35.903","C00.302","J35.200","K00.000x004","K08.201","K06.100","D37.011","K02.200","K07.200x012","K13.700x007","C02.300x002","C00.101","D10.501","Q16.101","K11.804","B49.x06","C06.100x004","Q38.000x003","H93.301","K09.200","J31.201","K14.001","H83.301","D14.102","S02.200","Q38.600x004","K10.800x010","S15.004","K10.202","Q16.400","Q38.701","C79.500x004","J00.x00x008","D14.001","D37.016","Z42.000x002","S15.200","H93.102","S01.200x092","J32.800x006","S15.002","H66.101","C08.800","C31.100","J38.711","R04.801","Q38.600x002","S10.001","D16.400x018","S02.600","C41.000x023","C00.000","J38.700x009","K06.805","K07.009","B02.800","K05.103","Q32.101","K11.605","C14.800x003","D14.006","K07.007","H65.300","S15.003","C49.000x005","A18.601+H67.0*","D22.200x002","K00.002","H90.500","T17.002","H95.000x001","C14.200","C30.000","C04.000","J30.300x001","J34.108","K13.000x007","J33.805","B37.800x084","T27.000x002","D37.000x008","K04.200","Q37.100","J36.x00x003","K08.804","D23.200x002","K11.805","G47.300x035","J10.100x002","S19.800x002","H61.806","K13.711","H91.300x001","K05.104","B08.501","D17.700x006","S01.500x051","K02.800x008","D38.506","C05.900x002","K13.011","S13.500","J39.203","C00.100","K09.002","S03.501","C41.000x027","D18.000x844","D38.000x002","C79.835","Q18.800x001","H65.901","K10.206","K04.300","R49.201","S13.402","Q18.003","S02.211","K14.302","K07.100x016","Q18.103","J35.804","B37.003","T90.800","S13.500x009","Q35.901","K10.805","C03.901","J38.313","Q67.200","K01.100","K07.300x003","K13.000x014","K13.001","H70.102","K11.000","J38.001","K00.100x001","G47.303","K09.100x004","J11.102","D10.300x007","J34.300","H60.503","H69.800","J95.004","Q35.500","Q36.004","Q30.802","K14.500x001","K04.702","K12.201","D11.701","C00.400","J34.804","H60.400x004","H83.800x003","J33.003","J38.716","Q89.800x909","H66.000","K11.200x011","K14.102","S02.800x003","J38.700x001","H70.000x007","R49.000","D38.505","H83.302","H80.000x001","J10.803+H67.1*","H70.000","K02.800x007","Q18.802","J34.800x019","Q17.000x003","Q30.001","Q36.901","J01.200","K06.802","S01.300x061","C08.000","C31.900x001","C79.203","H60.100x001","D21.004","K00.203","K11.606","D17.700x032","Q35.301","H70.003","J06.900","J34.000x004","H73.801","C77.003","A36.200x002","K12.000","H61.105","C10.101","K14.400","Q38.003","S13.601","K14.800x003","K07.012","C76.002","H93.800x001","Q31.000","E85.405","Q38.300x003","J04.005","B08.500","D18.000x823","A18.800x034+K93.8*","J04.000","J38.200x001","J31.001","K09.100x001","J33.002","K06.100x002","K12.101","C79.802","K11.203","S00.300","S12.813","C43.000","S01.300x081","Q31.804","K14.800x013","K13.205","S00.803","J39.215","C31.200","D14.008","D37.000x010","J31.005","K13.003","K11.303","H81.302","J39.218","J34.200","K12.001","T81.804","S01.506","H60.200","H66.900x003","Q18.801","Z46.400","Q67.402","J03.900x006","D03.401","H91.200","K07.600x001","D36.700x007","D18.000x503","C00.402","J00.x00","K07.603","K07.109","C78.300x004","J39.002","A52.700x003+J99.8*","J34.104","I77.001","K05.100x012","H61.103","C78.303","D04.000","D37.000x013","J38.000x005","Q30.800x006","D38.507","K07.300x009","H90.700","D23.000","K11.800x007","Q17.800x004","S13.500x003","J34.102","K11.200x012","K00.402","K09.001","J34.105","Q17.200","J38.704","K05.202","H61.803","K05.200x002","Q17.001","J32.102","K02.000","S00.500x051","J31.000","D18.000x504","K06.900","K03.300x003","J31.203","B87.400x001+H94.8*","D37.015","S01.500x001","S02.600x041","D10.307","T27.000x003","C30.101","K00.801","K10.000x002","Q35.500x004","K12.100x002","C31.801","M95.210","Z45.304","J32.400","C13.800","Z42.002","M35.900x011","E85.409","H60.300x006","Q36.900","K13.202","K04.901","K13.700x004","H90.400","Q27.800x028","C32.001","K07.100x012","A18.805+K93.8*","K00.605","Q67.405","J38.300x008","D14.103","K11.210","S01.900","K12.215","C00.403","J32.900x009","J35.100","J32.002","K11.800x002","K11.700x001","Q18.900x002","C44.000","C13.901","S00.401","Q17.801","S08.800","K09.205","A18.803+M63.0*","K05.000x002","D48.200x007","Z43.000x002","G47.300x036","K10.203","T81.800x008","K12.106","H83.000x001","Z42.000x019","K07.304","C05.200","Q36.000","H81.400x003","Q67.400x906","C49.004","K14.400x001","C79.803","C30.001","Q27.800x026","C00.200","Q18.001","Q31.802","C32.000","K13.400x004","J03.900","Q37.300","K08.102","K08.801","K03.204","D17.000x003","K04.800","S00.804","C78.300x010","T17.200","K13.700x001","C07.x00x003","D48.200x003","K07.106","S03.000x001","K13.002","C44.302","Q36.903","C05.900","J32.100","J38.300x015","K10.100","H93.901","Q31.200","J38.701","K07.010","H74.201","K07.107","K13.603","K11.902","C09.901","J38.000x001","H70.800x001","K00.001","T17.300","K10.000","B37.001","C08.100","D36.700x005","D18.100x027","C79.800x844","K14.300x001","D16.406","K03.700","K10.802","C03.900","K02.400x002","A69.100x002","K05.102","Q67.404","D37.004","K10.800x011","D14.007","J38.700x027","H80.000x002","J33.000","J02.905","S17.801","Q75.400","K11.300","D38.504","S02.600x031","J37.001","K13.300","S01.500x022","K02.800x003","C79.201","K13.016","Q18.500","S00.004","H91.900x002","C79.830","H66.102","J30.101","K03.202","B49.x05","H74.900","K00.000x003","S15.001","D00.004","K03.201","K12.214","S09.800x003","K11.204","K10.800x002","C43.200x003","D14.004","J32.800x004","K00.300x002","K05.200","J02.901","C10.000","K06.000","G47.300x001","J34.800x009","H93.200x005","K11.901","K14.000x007","M85.000x083","H73.000","Q38.500x006","K05.500x003","C14.000","C14.800x007","D14.000x009","K14.900x002","C02.000x002","J38.715","Q18.100x006","J38.720","K07.300x007","Q38.501","J38.310","S09.904","J32.005","H61.802","Q18.200x004","C39.000","J32.000x005","S01.504","Q17.002","Q35.101","J34.800x006","J34.811","J38.000x002","D36.700x006","S11.201","M95.002","C10.300","S17.900","J38.309","M31.301","K04.000x007","J06.800x001","K13.207","D37.000x001","D37.007","D10.000","Q67.403","D04.400x001","J38.300x018","K13.401","D16.401","C78.300x005","S09.101","Q18.700","H72.100","K03.203","J32.902","K11.602","K11.600","K10.214","E10.600x032","D48.200x004","C09.100x003","H73.804","H71.x01","K11.202","H68.100","K13.702","S02.201","C06.100","K14.200","J32.800x007","S15.801","D22.401","H61.104","A18.203","S00.800x053","J32.001","D22.302","K11.700x002","Q38.400x002","Q38.500x005","Q85.900x012","C41.010","H71.x04","Q18.100x009","Q30.200x001","K11.200x014","K13.700x009","S01.200x091","C00.002","J34.800x001","S15.301","D00.005","S00.501","C02.900","J31.204","K05.500x005","C78.302","J33.100","D00.011","K13.700x006","J34.805","K05.400","Q17.300x005","T16.x00x002","D17.700x021","K04.000","C79.503","J02.802","K13.706","Q38.305","S00.900","Q30.800x004","J39.204","D16.402","D37.000x007","K11.807","K13.200x006","S02.813","D10.309","K09.203","K12.204","D11.900x001","K12.114","K05.100","K13.000x018","K13.700","J11.100x001","K14.800x005","S01.803","Q16.103","J38.707","H93.103","D02.002","D10.302","J38.401","C11.200","S01.503","D02.000x004","K14.804","H61.001","C47.000x004","D04.401","K00.800x002","C77.005","E85.410","S01.502","S00.403","D37.017","H91.801","Q38.000x006","D10.900","K02.900x001","K14.003","Q27.802","S02.400x001","C39.801","Q36.005","H83.801","J32.904","H66.301","K11.500x005","J34.006","T81.800x013","D10.603","C79.834","K06.901","C76.000x007","K00.500x002","Q89.800x906","J38.712","K13.500","J38.000x011","H91.200x001","J03.901","S15.300","Q36.002","H61.902","H91.900","H60.000","J38.000x022","K13.004","S01.500x042","Q16.501","B44.800x001","H81.901","Q27.302","S13.502","K10.001","C30.103","K12.200x019","Q18.100x008","J38.311","H61.100x006","K11.302","D36.703","D37.001","C02.201","C14.003","K13.200x007","K03.300x001","D37.000x006","S10.000x003","Q27.300x007","M95.206","K09.000","J31.200","K12.102","C11.300","Q38.200","K03.800x002","Q89.800x905","K10.000x003","S02.700x004","H81.303","H72.800","B05.300+H67.1*","K05.500x001","Q32.100","J39.220","K07.500x002","J95.806","E14.600x031","K09.805","C11.300x006","J34.103","H81.900","K08.809","K11.301","S01.400x021","K13.705","C32.100x004","K00.608","H66.001","K03.800x005","S01.804","H65.101","S10.900","C79.200x008","Q30.800x003","I88.101","C03.100","K08.202","J03.900x001","K14.803","J95.807","Q85.900x035","M95.100","Z42.010","H61.805","T70.100","Q38.502","R49.001","K13.009","K04.100","Q30.300","D18.000x511","D23.201","C06.100x003","J38.706","K03.101","Z46.100","D48.519","C41.000x018","C76.006","Q89.800x903","K13.704","D16.400x013","D38.002","H60.000x004","K07.600x003","D21.006","G47.304","K12.117","R06.501","C79.832","K08.000","K04.700","A18.200x005","Q16.300","D16.404","C00.404","K12.206","Q36.003","T16.x00","S11.700","H60.300","J01.900","H61.100x007","C78.300x006","Q27.800x030","K00.000","B49.x09","D38.001","Q31.803","J95.501","S02.401","C06.102","C11.900","H66.400","C06.901","K02.500","Z42.006","C79.800x826","K05.100x008","D10.300x005","H65.300x001","C02.400","T28.000x002","S10.902","K12.000x001","H60.801","D14.000x006","K10.300x003","J38.000x006","J02.000","L04.001","S15.900x001","J38.703","K10.301","K00.900","J39.003","C44.201","J32.903","J38.700x007","K13.201","K11.700x003","D18.100x013","Q30.800x008","Q18.806","J32.900x010","Z45.303","C77.006","K14.800x012","M95.208","Q35.300","K00.201","Q36.904","K13.013","K03.602","Q18.300","J95.500","J38.705","H73.102","J04.100","K13.700x024","S11.003","J34.005","J95.005","K12.111","J38.304","Q31.800x005","H61.101","C11.102","C08.900x001","C79.500x028","K14.002","K11.404","H69.000","D18.000x808","K11.603","H61.100x005","C32.102","H71.x05","K03.600x001","H92.200","K07.202","C79.500x007","D37.002","Q38.400","C11.301","J95.809","S03.200","K05.300","K13.006","K10.210","S09.801","J04.000x006","Q17.900","S10.101","K05.100x005","C14.800x004","H83.101","Z42.007","K13.600x001","C32.300","K11.201","C41.007","Q35.902","K09.003","K08.203","K13.010","A52.700x004+J99.8*","K12.100x011","H66.200","D11.702","D16.411","E34.800x005","C02.000","D10.701","H91.100","J38.303","J38.101","J34.008","C79.804","C41.012","J37.002","C32.900","K13.709","K11.211","I86.000","G47.300x037","K12.200x012","K11.600x005","S00.400x052","K14.901","J32.906","D18.003","D02.301","A36.000x004","T16.x00x001","K02.800x005","D04.201","J39.207","K10.901","K13.700x010","C47.000x006","H60.002","K13.200x005","K09.103","K09.100x006","K09.807","D14.005","Q89.800x907","D04.300x002","K10.800x005","Q38.303","D36.701","A36.200","S01.500x052","C47.000x010","S00.400","K13.204","J33.804","K12.100x013","H83.900x001","A52.703+J99.8*","J04.000x008","J38.500","S01.802","K04.400","H90.200","H60.500x007","K07.100x014","K11.100x004","C00.500","C30.004","D17.002","J05.100","J10.100x001","K09.102","D10.306","C41.001","S12.803","C49.000x004","C03.001","K10.800x006","C03.000","K05.000","C77.008","J34.812","K07.900","S13.401","Q37.200","K07.901","J35.801","D22.201","K08.101","J35.805","J39.201","J95.805","J34.807","S02.600x011","D38.003","C00.800","J38.700x013","K12.200x018","J34.800x034","H80.800x001","S00.302","Q38.500x007","C06.001","J10.800","J34.007","Q32.000","D00.001","M95.006","S02.600x051","S09.903","J35.803","J32.201","K08.104","K07.000x008","K13.700x026","S11.900","C79.202","J35.800x008","S11.100x001","D16.500","K00.204","S02.711","J32.301","S13.500x010","H72.101","J10.101","C43.400x002","Q30.801","H73.001","B87.300x002+J99.8*","K07.108","S00.800x054","J32.004","S13.500x004","H71.x03","J34.004","J34.800x004","H83.200x001","C47.000x008","Q87.006","S01.300x051","H71.x00","J32.800x002","E85.402","K02.800x002","Q85.905","D38.509","K10.103","T17.000","D37.000x009","K13.000x006","H60.502","H93.001","K04.803","D18.000x845","H95.900x002","J06.900x001","S08.100","Q37.800","J32.400x001","H61.100x009","C00.300","K12.217","C10.200","Q16.500","C06.101","H70.900","K12.107","D14.003","K08.803","T18.001","K13.200x004","H81.800","D16.400x019","Q38.400x001","K11.800x010","H92.000","D37.012","K07.100x009","C02.300","D37.000x005","H83.000","K12.108","A69.000","Q16.102","K14.000","C79.800x824","J32.200","H73.900","K09.808","Z42.008","K11.802","C76.003","J95.001","J34.802","H80.900","K10.201","S03.400x002","Q30.800x007","D10.401","J39.809","R59.900","K07.008","H83.000x002","R06.700","C09.100x002","C02.100x001","D10.502","K13.209","K00.401","J33.800x002","K07.200x014","S01.200x011","S02.810","K11.500x003","K13.700x021","A18.201","B08.000x003","C43.302","J34.800x020","S00.000x053","C76.004","D18.000x506","K09.900x001","Q36.900x003","K07.103","C41.005","K07.200x013","C14.800x005","K13.700x003","D18.100x021","J02.903","K05.301","Q30.100x001","K12.200x011","K06.807","J95.803","D17.700x007","A18.600","J04.003","J10.100x003","K00.601","Q31.800x003","D18.000x809","K02.901","C31.300","H91.000","J95.000x007","K14.800x010","Q30.800x005","B49.x07","J38.400x003","K03.000x002","K14.805","J34.100x008","K07.300x006","C11.300x001","K13.210","K12.100x012","K13.101","I88.103","K00.200x001","K13.600","J38.719","G47.300x033","Q16.401","Q16.200","K10.200","D10.200","B08.802","K00.400x004","C77.001","J32.006","H91.001","D37.008","K02.101","M95.005","J39.222","K04.001","J38.601","D10.303","K13.707","J34.806","K00.200x010","K14.600x001","B36.903+H62.2*","B00.200x001","Q31.500","S10.901","K09.809","C01.x01","D10.100","B00.201","J38.312","K07.002","Q75.200x001","C41.011","K12.207","C06.000","J32.800x008","J39.214","J32.800x003","J03.000","S13.501","B44.800x006","J37.003","J38.201","C13.101","H70.001","J32.101","D38.500x004","C44.306","J37.100","H70.800","C41.000x025","K13.700x019","B48.100","Q17.803","R49.202","Q34.801","D38.000x001","C14.800x002","J10.100x004","D14.100x002","B37.200x005+H62.2*","K07.000x012","H60.900","K12.301","S19.900","J32.900x008","D10.600","M95.203","M31.300","D03.400x002","K10.000x004","J39.212","J32.302","Q17.300x006","H74.300x003","A69.100x003","J00.x00x007","J95.000x002","S01.301","K12.116","J38.600","S13.403","C11.001","K07.203","K14.807","K06.804","H61.000","C00.303","H80.100x002","J01.000","Z42.005","A36.000x002","K11.200","C79.502","C02.900x002","K04.401","S00.500","K14.300","D14.000x005","K06.803","C14.001","C01.x00","K04.701","K07.800x001","T85.800x811","Z42.000x015","K04.900","J39.208","K09.005","Q38.601","D14.000x010","J38.702","Q18.200x003","C71.900x009","K04.703","C77.004","H60.100x002","R59.000x004","K09.800x005","B37.000","S01.400x031","K04.000x008","K07.011","K11.100x002","A18.202","Q18.807","Z43.000","J95.800x001","H80.100x001","D14.100","J01.800","J32.300x004","Q17.400x002","D37.000x003","K00.205","K11.400x003","J34.001","B49.x10","A18.800x025+K93.8*","J30.200","D14.000x007","Q38.000x005","K13.403","Q31.301","S12.814","H83.200x002","K10.800x012","D18.100x010","K02.400x003"};
        String[] dept_list={};
        if (!(true && Base.contains(mdc_zd,record.zdList[0]))){
            return "";
        }
        
        Base.groupMessages.putMessage(record.Index,"符合MDCD入组条件，匹配规则：主诊断匹配");
        String result;

        result=DA1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DB1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DB2.group(record);
        if (result.length()>0){
            return result;
        }

        result=DB3.group(record);
        if (result.length()>0){
            return result;
        }

        result=DC1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DC2.group(record);
        if (result.length()>0){
            return result;
        }

        result=DD1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DD2.group(record);
        if (result.length()>0){
            return result;
        }

        result=DE1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DE2.group(record);
        if (result.length()>0){
            return result;
        }

        result=DG1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DG2.group(record);
        if (result.length()>0){
            return result;
        }

        result=DJ1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DK1.group(record);
        if (result.length()>0){
            return result;
        }

        if (record.ssList!=null && record.ssList.length>0  && Base.intersect(Base.SS_VALID,record.ssList)){
            Base.groupMessages.putMessage(record.Index,"符合DQY入组条件，存在有效手术操作："+String.join(",",Base.Intersect(record.ssList,Base.SS_VALID)));
            return "DQY";
        }

        result=DR1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DS1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DT1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DT2.group(record);
        if (result.length()>0){
            return result;
        }

        result=DU1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DV1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DW1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DZ1.group(record);
        if (result.length()>0){
            return result;
        }

        Base.groupMessages.putMessage(record.Index,"不符合MDCD的ADRG入组条件");
        return "";
    }
}

